import { initGlobalEventListeners } from "@/config/eventListener";
import { RouterMount, router } from "@/router";
import store from "@/store";
import uView from "uview-ui";
import Vue from "vue";
import App from "./App";
import "./uni.promisify.adaptor";
import "./styles/global.scss";

Vue.use(router);

Vue.use(uView);

Vue.config.productionTip = false;

App.mpType = "app";

// 初始化全局事件监听
initGlobalEventListeners();

const app = new Vue({
	...App,
	store,
	router
});

// #ifdef H5
RouterMount(app, router, "#app");
// #endif

// #ifndef H5
app.$mount();
// #endif
